package com.bgIntlgn.client.entity.humanResources;

import yuhuibear.poat.annotations.action.AutoGenerateValue;
import yuhuibear.poat.annotations.relation.Field;
import yuhuibear.poat.annotations.relation.Table;
import yuhuibear.poat.object.bean.Bean;

@Table(name = "employee_work_skills", constrain = "")
public class EmployeeWorkSkill implements Bean {

	@AutoGenerateValue(skipOnNull = true, sqlToGet = "select currval('employee_work_skills_id_seq')")
	@Field(name = "id", type = "bigserial", constrain = "primary key")
	private Long id;

	/**
	 * 对应的员工.
	 */
	@Field(name = "employee_id", type = "int8", constrain = "not null references employees(id)  on update cascade on delete cascade")
	private Long employeeId;

	/**
	 * 工序类型(数据字典) [DictioanryType: 工序类型]
	 */
	@Field(name = "technic", type = "int8", constrain = "not null references dictionarys(id) on update cascade ")
	private Long technic;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getEmployeeId() {
		return this.employeeId;
	}

	public void setEmployeeId(Long employeeId) {
		this.employeeId = employeeId;
	}

	public Long getTechnic() {
		return technic;
	}

	public void setTechnic(Long technic) {
		this.technic = technic;
	}

}
